/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

import java.util.Objects;

public class Judge {
    
    private Long id;
    private String name;
    private String email;
    private String senha;
    private String bjcpId;

    public Judge() {
    }

    public Long getId() {
        return id;
    }
    
//    public void setId(String id){
//        this.id = Long.parseLong(id);
//    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSenha() {
        return senha;
    }

    public void setSenha(String senha) {
        this.senha = senha;
    }

    public String getBjcpId() {
        return bjcpId;
    }

    public void setBjcpId(String bjcpId) {
        this.bjcpId = bjcpId;
    }

    @Override
    public String toString() {
        return "Judge{" + "id=" + id + ", name=" + name + ", email=" + email + ", senha=" + senha + ", bjcpId=" + bjcpId + '}';
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Judge other = (Judge) obj;
        if (!Objects.equals(this.bjcpId, other.bjcpId)) {
            return false;
        }
        return true;
    }
}
